﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Linq.Expressions;
using SBACN.WebSite.Models;
using SBACN.WebSite.Code;

namespace SBACN.WebSite.MemberMsg
{
	public partial class MemberMsg : BasePage
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			int ID = Convert.ToInt32(Request.QueryString["id"]);
			BindData(ID);
		}

		protected void BindData(int ID)
		{
			Expression<Func<TB_Member, bool>> f = (p => (p.ID == ID ));
			var resultM = DAL.DALHelper.Instance.GetList<TB_Member>(f);
			if (resultM.Count >0)
			{
				this.Show.DataSource = resultM;
				this.Show.DataBind();
			}
		}
	}
}